package demo;

public class StringDemo02 {
    public static void main(String[] args) {
        //字符串声明
        String str = "云创动力-开发喵-云创动力";
        //获取指定索引处的字符
        System.out.println(str.charAt(0));    // 云
        //获得指定索引处的字符的Unicode编码
        System.out.println(str.codePointAt(0));   //20113
        char c = 20113;
        char c1 = 21019;
        System.out.println(c);   //云
        System.out.println(c1);   //创
        char s = 'a';
        System.out.println(s);    //
        String s1 = "A";
        System.out.println(s1);









    }
}
